
<? if($auth["auth"]) : ?> 
		<table width="100%" cellspacing="0" cellpadding="4">
			<tr>
				<td background="images/img03.gif" class="T14"><b><font color="#ffffff">Account menu</font></b></td>
			</tr>
			<tr>
				<td align="center">
					<div style="padding-top:8px; padding-bottom:8px;">You are logged in as <b><?=$auth["username"]?></b></div>
					<div style="padding-top:8px; padding-bottom:8px;"><?=anchor('user/profile/0/show/'.$auth["additional"][0]['id'], 'Profile')?> | <?=anchor('user/logout','Logout')?></div>
					
				</td>
			</tr>
		</table>
<? else: ?>
	<?=form_open('user/index');?>
		<table width="100%" cellspacing="0" cellpadding="4">
			<tr>
				<td colspan="2" background="images/img03.gif" class="T14"><b><font color="#ffffff">Have an Account?</font></b></td>
			</tr>
			<tr>
				<td align="center">login:</td>
				<td><input type="text" name="username" size="8"></td>
			</tr>
			<tr>
				<td align="center">password:</td>
				<td><input type="password" name="password" size="8"><input type="image" align="absmiddle" width="18" height="18" border="0" src="images/arrow.gif"></td>
			</tr>		
			<tr>
				<td colspan="2" align="center"><?=anchor('user/forgot','Forgot your username or password?');?></td>
			</tr>
		</table>
	<?=form_close();?>
<? endif; ?>